/* 清除margin */
html,
body,
p,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

* {
  /* 移动端按压效果取消 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 高度继承 */
html,
body{
  width: 100%;
  height: 100%;
}
body {
  /* ios上的滑动卡顿 */
  -webkit-overflow-scrolling: touch;
  /* 防止长按选中 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

ul,
ol {
  list-style: none;
  padding-left: 0;
}

button {
  padding: 0;
  border: none;
  background-color: transparent;
}

body,
div,
p,
ul,
li,
button,
textarea {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
textarea {
  outline: none;
}

input,
textarea {
  border: none;
}

a:hover {
  outline: 0;
}

/* 清除浮动 */

.cf:before,
.cf:after {
  content: "";
  display: table;
}

.cf:after {
  clear: both;
}

/* 去除滚动条 */

::-webkit-scrollbar {
  display: none;
}



/* 解决rem屏幕闪动的问题 */

@media (min-width: 320px) {
  html {
    font-size: 44.4444px;
  }
}

@media (min-width: 360px) {
  html {
    font-size: 50px;
  }
}

@media (min-width: 375px) {
  html {
    font-size: 52.0833px;
  }
}

@media (min-width: 384px) {
  html {
    font-size: 53.3333px;
  }
}

@media (min-width: 414px) {
  html {
    font-size: 57.5px;
  }
}

@media (min-width: 448px) {
  html {
    font-size: 62.2222px;
  }
}

@media (min-width: 480px) {
  html {
    font-size: 66.6667px;
  }
}

@media (min-width: 512px) {
  html {
    font-size: 71.1111px;
  }
}

@media (min-width: 544px) {
  html {
    font-size: 75.5556px;
  }
}

@media (min-width: 576px) {
  html {
    font-size: 80px;
  }
}

@media (min-width: 608px) {
  html {
    font-size: 84.4444px;
  }
}

@media (min-width: 640px) {
  html {
    font-size: 88.8889px;
  }
}

@media (min-width: 720px) {
  html {
    font-size: 100px;
  }
}